const p = new Promise((resolve, reject) => {
    //1.resolve修改  pending => resolved
    // resolve('ok');
    //2.reject修改 pending => rejected
    // reject('Error');
    //3.throw 抛出一个错误 pending => rejected
    throw '出事了';
})

console.log(p);